package org.eden.web.controller;

import org.eden.web.pojo.Response;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AdminController {

    @PostMapping("/admin")
    @PreAuthorize("hasAuthority('admin')")
    public Response register() {
        return Response.success("admin register test");
    }

}
